﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Randata.Test.Model;

namespace Randata.Test
{
    [TestClass]
    public class CircularDependencyTest
    {

        [TestMethod]
        public void Should_not_recreate_the_circular_dependencies()
        {
            Class c = DataProvider.Any<Class>();

            Assert.AreEqual(c, c.Students.First().Class);
        }

    }
}
